set the servlet configuration within a web.xml file
generally used to set the configuration of a web application in Spring.
the file is provided as the CLASSPATH property
load bean definitions from an XML file
the file is provided as a full file system path to the constructor
load bean definitions from an XML file
WebApplicationContext
ClassPathXmlApplicationContext
FileSystemXmlApplicationContext
they organize the backbone of your application.
involves adding annotations to simple classes in order to provide context and functionality for Spring
involves defining class-related data (in an external XML file)
Three main implementations:
The goal of the ApplicationContext is to facilitate integration with Spring's Aspect Oriented Programming (AOP) functionality.
is a sub-interface of the BeanFactory
produce container-managed objects known as beans
an interface that allows for configuration and management of objects.
a no-argument constructor
available private fields
Cannot extend or implement framework-specific classes and interfaces classes or contain annotations.
They can implement properties, as well as getters and setters for these properties
it is the simplest possible unit of code available for an application
POJOs are valid objects for any application
it contains no ties to frameworks
Annotations
XML
It manages various components created for the application and handles any required dependency injections.
manages the lifecycle application from start to finish
ApplicationContext
BeanFactory
In order for a POJO to be a valid JavaBean, it must have:
a special type of POJO called JavaBean
Yes and no
A POJO is the most basic type of an object
Two types of metadata
it is the core of the Spring framework
Two core components of Spring IoC
POJO (Plain Old Java Object)
Spring container
The container provides core Spring functionality, such as managing the application lifecycle and dependencies
IoC (Inversion of Control)
markmapmarkmap